import request from "@/utils/requset.js";
export const apis = {
  add: (data) => {
    return request({
      url: "/sisApprove",
      method: "post",
      data: data,
    });
  },
  query: (params) => {
    return request({
      url: "/sisApprove",
      method: "get",
      params,
    });
  },
  detail: (id) => {
    return request({
      url: "/sisApprove/" + id,
      method: "get",
    });
  },
  del: (row) => {
    return request({
      url: "/sisApprove",
      method: "delete",
      params: {
        id: row.id,
      },
    });
  },
  update: (data) => {
    return request({
      url: "/sisApprove",
      method: "put",
      data: data,
    });
  },
  zz: () => {
    return request({
      url: "/sysDangerPoint/getData",
      method: "get",
    });
  },
  spr: () => {
    return request({
      url: "/sisConfig",
      method: "get",
    });
  },
  mysq: () => {
    return request({
      url: "/sisApprove/listByCreateUser",
      method: "get",
    });
  },
  mysp: () => {
    return request({
      url: "/sisApprove/listByPhaseUser",
      method: "get",
    });
  },
  approve: (data) => {
    return request({
      url: "/sisApprove/approve",
      method: "post",
      data,
    });
  },
};
